package com.fita.wechat.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fita.entity.data.City;

/**
 * 
 * @author sjh
 *
 */
@Dao("hibernate")
public interface CityDao {
	
	/**
	 * @param englishName
	 * @return
	 */
	@Query("FROM City WHERE disabled = false AND englishName = :englishName")
	public City loadByEnglishName(@Variable("englishName") String englishName);
}
